package com.sjy.ylxt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sjy.ylxt.entity.domain.FileEntity;
import com.sjy.ylxt.mapper.FileEntityMapper;
import com.sjy.ylxt.mapper.YlxtAdminMapper;
import com.sjy.ylxt.service.FileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class FileServiceImpl extends ServiceImpl<FileEntityMapper, FileEntity> implements FileService {
     @Resource
    private FileEntityMapper fileEntityMapper;
    @Override
    public int insert(FileEntity record) {
        return fileEntityMapper.insert(record);
    }

    @Override
    public FileEntity findById(Long id) {
        return  fileEntityMapper.findById(id);
    }

}
